import request from '@/axios';
import { baseUrl } from '@/config/env';

// 活动中心-活动类型新增
export const activityTypeAdd = (data) => request({
    url: baseUrl + '/activity/type/add',
    method: 'post',
    data
})
// 活动中心-活动类型修改
export const activityTypeUpdate = (data) => request({
    url: baseUrl + '/activity/type/update',
    method: 'post',
    data
})
// 活动中心-活动类型删除
export const activityTypeDelete = (id) => request({
    url: baseUrl + `/activity/type/delete/${id}`,
    method: 'get'
});
// 活动中心-活动类型列表
export const activityTypeList = (data) => request({
    url: baseUrl + '/activity/type/list',
    method: 'post',
    data
})



// 活动中心-活动新增
export const activityAdd = (data) => request({
    url: baseUrl + '/activity/add',
    method: 'post',
    data
})
// 活动中心-活动修改
export const activityUpdate = (data) => request({
    url: baseUrl + '/activity/update',
    method: 'post',
    data
})
// 活动中心-活动删除
export const activityDelete = (id) => request({
    url: baseUrl + `/activity/delete/${id}`,
    method: 'get'
});
// 活动中心-活动列表
export const activityList = (data) => request({
    url: baseUrl + '/activity/list',
    method: 'post',
    data
})
// 活动中心-活动新增类型
export const activityAddType = () => request({
    url: baseUrl + '/activity/add/type',
    method: 'get',
})